#include<bits/stdc++.h>
using namespace std;
#define int long long
#define endl '\n'
int a[101];
string str[] = { "ling","yi","er","san","si","wu",
    "liu","qi","ba","jiu" };

signed main() {
    ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
    string s; cin >> s;
    int sum = 0;
    for (int i = 0; i < s.size(); i++) {
        sum += s[i] - '0';
    }
    int k = 0;
    while (sum) {
        a[k++] = sum % 10;
        sum /= 10;
    }
    for (int i = k - 1; i >= 0; i--) {
        if (i == k - 1) cout << str[a[i]];
        else cout << " " << str[a[i]];
    }
    return 0;
}